package com.red.star.wechat.data.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.Date;

/**
 * @author nofish.yan@gmail.com
 * @date 2018/8/29.
 * 用户留存统计
 */
@Data
@NoArgsConstructor
@Table(name = "stat_fans_remain")
public class FansRemain extends BaseEntity {

    /**
     * 商场编码
     */
    private String mallCode;

    /**
     * 周留存人数
     */
    private Integer weekRemain;

    /**
     * 周活跃人数
     */
    private Integer weekAlive;

    /**
     * 统计日期
     */
    private Date date;

    public FansRemain(String mallCode, Integer weekRemain, Integer weekAlive, Date date) {
        this.mallCode = mallCode;
        this.weekRemain = weekRemain;
        this.weekAlive = weekAlive;
        this.date = date;
    }
}
